package org.example.MedicalCrowdsourcing.repository;

import org.example.MedicalCrowdsourcing.model.entity.Project;
import org.example.MedicalCrowdsourcing.model.entity.ProjectData;
import org.example.MedicalCrowdsourcing.model.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProjectDataRepository extends JpaRepository<ProjectData, Long> {
    List<ProjectData> findByProject(Project project);
    List<ProjectData> findByParticipant(User participant);
    List<ProjectData> findByProjectAndParticipant(Project project, User participant);
    List<ProjectData> findByStatus(String status);
} 